import Vue from 'vue'
import Router from 'vue-router'
import search from '../components/search'
import details from '../components/details'
import home from '../components/Home/index'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/search/:key?',
      name: 'search',
      component: search
    },
    {
      path: '/',
      name: 'home',
      component: home,
      meta:{isShow: true}
    },
    {
      path: '/details/:id?',
      name: 'details',
      component: details,
      meta:{isShow:false}
    },
  ]
})
